package com.rsxy.service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.rsxy.service.pojo.RsProduct;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.hibernate.validator.constraints.EAN;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface RsProductMapper extends BaseMapper<RsProduct> {
    //IPage<RsProduct> selectPageVo(Page<?> page);
  //  IPage<RsProduct> getPageList(Page<?> page);
    List<RsProduct> getSearchList(@Param("productTitle")String productTitle);
    List<RsProduct> getProductList(@Param("productType")Integer productType);
    RsProduct  getProductInfoById(@Param("productId") String productId);
    int updateByProductId(@Param("productId") String productId);
}
